<?php

use Illuminate\Database\Seeder;

class AdministratorPermissionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $permissions = [
            // 管理员
            [
                'group_name' => '管理员',
                'display_name' => '管理员列表',
                'slug' => 'administrator',
                'method' => 'GET',
                'url' => 'administrator',
            ],
            [
                'group_name' => '管理员',
                'display_name' => '管理员添加参数',
                'slug' => 'administrator.create',
                'method' => 'GET',
                'url' => 'administrator/create',
            ],
            [
                'group_name' => '管理员',
                'display_name' => '管理员添加',
                'slug' => 'administrator.store',
                'method' => 'POST',
                'url' => 'administrator',
            ],
            [
                'group_name' => '管理员',
                'display_name' => '管理员查看',
                'slug' => 'administrator.edit',
                'method' => 'GET',
                'url' => 'administrator/\d+',
            ],
            [
                'group_name' => '管理员',
                'display_name' => '管理员编辑',
                'slug' => 'administrator.update',
                'method' => 'PUT',
                'url' => 'administrator/\d+',
            ],
            [
                'group_name' => '管理员',
                'display_name' => '管理员删除',
                'slug' => 'administrator.destroy',
                'method' => 'DELETE',
                'url' => 'administrator/\d+',
            ],

            // 管理员角色
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色列表',
                'slug' => 'administrator_role',
                'method' => 'GET',
                'url' => 'administrator_role',
            ],
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色添加参数',
                'slug' => 'administrator_role.create',
                'method' => 'GET',
                'url' => 'administrator_role/create',
            ],
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色添加',
                'slug' => 'administrator_role.store',
                'method' => 'POST',
                'url' => 'administrator_role',
            ],
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色查看',
                'slug' => 'administrator_role.edit',
                'method' => 'GET',
                'url' => 'administrator_role/\d+',
            ],
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色编辑',
                'slug' => 'administrator_role.update',
                'method' => 'PUT',
                'url' => 'administrator_role/\d+',
            ],
            [
                'group_name' => '管理员角色',
                'display_name' => '管理员角色删除',
                'slug' => 'administrator_role.destroy',
                'method' => 'DELETE',
                'url' => 'administrator_role/\d+',
            ],

            // 系统配置
            [
                'group_name' => '系统',
                'display_name' => '系统配置读取',
                'slug' => 'setting',
                'method' => 'GET',
                'url' => 'setting',
            ],
            [
                'group_name' => '系统',
                'display_name' => '系统配置保存',
                'slug' => 'setting.save',
                'method' => 'POST',
                'url' => 'setting',
            ],

            // banner管理
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner列表',
                'slug' => 'banner',
                'method' => 'GET',
                'url' => 'banner',
            ],
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner添加参数',
                'slug' => 'banner.create',
                'method' => 'GET',
                'url' => 'banner/create',
            ],
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner添加',
                'slug' => 'banner.store',
                'method' => 'POST',
                'url' => 'banner',
            ],
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner查看',
                'slug' => 'banner.edit',
                'method' => 'GET',
                'url' => 'banner/\d+',
            ],
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner编辑',
                'slug' => 'banner.update',
                'method' => 'PUT',
                'url' => 'banner/\d+',
            ],
            [
                'group_name' => 'banner管理',
                'display_name' => 'banner删除',
                'slug' => 'banner.destroy',
                'method' => 'DELETE',
                'url' => 'banner/\d+',
            ],

            // 材料父类管理
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类列表',
                'slug' => 'materialparent',
                'method' => 'GET',
                'url' => 'materialparent',
            ],
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类添加参数',
                'slug' => 'materialparent.create',
                'method' => 'GET',
                'url' => 'materialparent/create',
            ],
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类添加',
                'slug' => 'materialparent.store',
                'method' => 'POST',
                'url' => 'materialparent',
            ],
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类查看',
                'slug' => 'materialparent.edit',
                'method' => 'GET',
                'url' => 'materialparent/\d+',
            ],
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类编辑',
                'slug' => 'materialparent.update',
                'method' => 'PUT',
                'url' => 'materialparent/\d+',
            ],
            [
                'group_name' => '材料大类管理',
                'display_name' => '材料大类删除',
                'slug' => 'materialparent.destroy',
                'method' => 'DELETE',
                'url' => 'materialparent/\d+',
            ],

            // 材料管理
            [
                'group_name' => '材料管理',
                'display_name' => '材料列表',
                'slug' => 'material',
                'method' => 'GET',
                'url' => 'material',
            ],
            [
                'group_name' => '材料管理',
                'display_name' => '材料添加参数',
                'slug' => 'material.create',
                'method' => 'GET',
                'url' => 'material/create',
            ],
            [
                'group_name' => '材料管理',
                'display_name' => '材料添加',
                'slug' => 'material.store',
                'method' => 'POST',
                'url' => 'material',
            ],
            [
                'group_name' => '材料管理',
                'display_name' => '材料查看',
                'slug' => 'material.edit',
                'method' => 'GET',
                'url' => 'material/\d+',
            ],
            [
                'group_name' => '材料管理',
                'display_name' => '材料编辑',
                'slug' => 'material.update',
                'method' => 'PUT',
                'url' => 'material/\d+',
            ],
            [
                'group_name' => '材料管理',
                'display_name' => '材料删除',
                'slug' => 'material.destroy',
                'method' => 'DELETE',
                'url' => 'material/\d+',
            ],

            // 材料图管理
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图列表',
                'slug' => 'material_gallery',
                'method' => 'GET',
                'url' => 'material_gallery',
            ],
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图添加参数',
                'slug' => 'material_gallery.create',
                'method' => 'GET',
                'url' => 'material_gallery/create',
            ],
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图添加',
                'slug' => 'material_gallery.store',
                'method' => 'POST',
                'url' => 'material_gallery',
            ],
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图查看',
                'slug' => 'material_gallery.edit',
                'method' => 'GET',
                'url' => 'material_gallery/\d+',
            ],
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图编辑',
                'slug' => 'material_gallery.update',
                'method' => 'PUT',
                'url' => 'material_gallery/\d+',
            ],
            [
                'group_name' => '材料图管理',
                'display_name' => '材料图删除',
                'slug' => 'material_gallery.destroy',
                'method' => 'DELETE',
                'url' => 'material_gallery/\d+',
            ],

            // 系列图管理
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库列表',
                'slug' => 'series_gallery',
                'method' => 'GET',
                'url' => 'series_gallery',
            ],
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库添加参数',
                'slug' => 'series_gallery.create',
                'method' => 'GET',
                'url' => 'series_gallery/create',
            ],
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库添加',
                'slug' => 'series_gallery.store',
                'method' => 'POST',
                'url' => 'series_gallery',
            ],
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库查看',
                'slug' => 'series_gallery.edit',
                'method' => 'GET',
                'url' => 'series_gallery/\d+',
            ],
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库编辑',
                'slug' => 'series_gallery.update',
                'method' => 'PUT',
                'url' => 'series_gallery/\d+',
            ],
            [
                'group_name' => '标准图库管理',
                'display_name' => '标准图库删除',
                'slug' => 'series_gallery.destroy',
                'method' => 'DELETE',
                'url' => 'series_gallery/\d+',
            ],

            // CAD图管理
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图列表',
                'slug' => 'cad_gallery',
                'method' => 'GET',
                'url' => 'cad_gallery',
            ],
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图添加参数',
                'slug' => 'cad_gallery.create',
                'method' => 'GET',
                'url' => 'cad_gallery/create',
            ],
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图添加',
                'slug' => 'cad_gallery.store',
                'method' => 'POST',
                'url' => 'cad_gallery',
            ],
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图查看',
                'slug' => 'cad_gallery.edit',
                'method' => 'GET',
                'url' => 'cad_gallery/\d+',
            ],
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图编辑',
                'slug' => 'cad_gallery.update',
                'method' => 'PUT',
                'url' => 'cad_gallery/\d+',
            ],
            [
                'group_name' => 'CAD图管理',
                'display_name' => 'CAD图删除',
                'slug' => 'cad_gallery.destroy',
                'method' => 'DELETE',
                'url' => 'cad_gallery/\d+',
            ],

            // 设计之星管理
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星列表',
                'slug' => 'designer_star',
                'method' => 'GET',
                'url' => 'designer_star',
            ],
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星添加参数',
                'slug' => 'designer_star.create',
                'method' => 'GET',
                'url' => 'designer_star/create',
            ],
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星添加',
                'slug' => 'designer_star.store',
                'method' => 'POST',
                'url' => 'designer_star',
            ],
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星查看',
                'slug' => 'designer_star.edit',
                'method' => 'GET',
                'url' => 'designer_star/\d+',
            ],
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星编辑',
                'slug' => 'designer_star.update',
                'method' => 'PUT',
                'url' => 'designer_star/\d+',
            ],
            [
                'group_name' => '设计之星管理',
                'display_name' => '设计之星删除',
                'slug' => 'designer_star.destroy',
                'method' => 'DELETE',
                'url' => 'designer_star/\d+',
            ],

            // 经典案例管理
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例列表',
                'slug' => 'classic_case',
                'method' => 'GET',
                'url' => 'classic_case',
            ],
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例添加参数',
                'slug' => 'classic_case.create',
                'method' => 'GET',
                'url' => 'classic_case/create',
            ],
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例添加',
                'slug' => 'classic_case.store',
                'method' => 'POST',
                'url' => 'classic_case',
            ],
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例查看',
                'slug' => 'classic_case.edit',
                'method' => 'GET',
                'url' => 'classic_case/\d+',
            ],
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例编辑',
                'slug' => 'classic_case.update',
                'method' => 'PUT',
                'url' => 'classic_case/\d+',
            ],
            [
                'group_name' => '经典案例管理',
                'display_name' => '经典案例删除',
                'slug' => 'classic_case.destroy',
                'method' => 'DELETE',
                'url' => 'classic_case/\d+',
            ],

            // 设计师管理
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师列表',
                'slug' => 'designer',
                'method' => 'GET',
                'url' => 'designer',
            ],
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师添加参数',
                'slug' => 'designer.create',
                'method' => 'GET',
                'url' => 'designer/create',
            ],
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师添加',
                'slug' => 'designer.store',
                'method' => 'POST',
                'url' => 'designer',
            ],
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师查看',
                'slug' => 'designer.edit',
                'method' => 'GET',
                'url' => 'designer/\d+',
            ],
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师编辑',
                'slug' => 'designer.update',
                'method' => 'PUT',
                'url' => 'designer/\d+',
            ],
            [
                'group_name' => '设计师管理',
                'display_name' => '设计师删除',
                'slug' => 'designer.destroy',
                'method' => 'DELETE',
                'url' => 'designer/\d+',
            ],

            // 专卖店需求管理
            [
                'group_name' => '专卖店需求管理',
                'display_name' => '专卖店需求列表',
                'slug' => 'shop_demand',
                'method' => 'GET',
                'url' => 'shop_demand',
            ],
            [
                'group_name' => '专卖店需求管理',
                'display_name' => '专卖店需求详情',
                'slug' => 'shop_demand.detail',
                'method' => 'GET',
                'url' => 'shop_demand/detail',
            ],
            [
                'group_name' => '专卖店需求管理',
                'display_name' => '专卖店需求受理和取消受理',
                'slug' => 'shop_demand.acceptance',
                'method' => 'PUT',
                'url' => 'shop_demand/acceptance/\d+',
            ],

            // 设计师俱乐部需求管理
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求列表',
                'slug' => 'designer_demand',
                'method' => 'GET',
                'url' => 'designer_demand',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求添加参数',
                'slug' => 'designer_demand.create',
                'method' => 'GET',
                'url' => 'designer_demand/create',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求添加',
                'slug' => 'designer_demand.store',
                'method' => 'POST',
                'url' => 'designer_demand',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求查看',
                'slug' => 'designer_demand.edit',
                'method' => 'GET',
                'url' => 'designer_demand/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求编辑',
                'slug' => 'designer_demand.update',
                'method' => 'PUT',
                'url' => 'designer_demand/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求中标明细',
                'slug' => 'designer_demand.demandBiddingRecords',
                'method' => 'GET',
                'url' => 'designer_demand/demandBiddingRecords/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部方案明细',
                'slug' => 'designer_demand.demandProgrammeRecords',
                'method' => 'GET',
                'url' => 'designer_demand/demandProgrammeRecords/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求中标和取消中标',
                'slug' => 'designer_demand.bid',
                'method' => 'PUT',
                'url' => 'designer_demand/bid/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部方案审核确认和取消审核',
                'slug' => 'designer_demand.verify',
                'method' => 'PUT',
                'url' => 'designer_demand/verify/\d+',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求导出数据表',
                'slug' => 'designer_demand.listExport',
                'method' => 'GET',
                'url' => 'designer_demand/listExport',
            ],
            [
                'group_name' => '设计师俱乐部需求管理',
                'display_name' => '设计师俱乐部需求删除',
                'slug' => 'designer_demand.destroy',
                'method' => 'DELETE',
                'url' => 'designer_demand/\d+',
            ],

            // 大概念PDF管理
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF列表',
                'slug' => 'manual',
                'method' => 'GET',
                'url' => 'manual',
            ],
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF添加参数',
                'slug' => 'manual.create',
                'method' => 'GET',
                'url' => 'manual/create',
            ],
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF添加',
                'slug' => 'manual.store',
                'method' => 'POST',
                'url' => 'manual',
            ],
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF查看',
                'slug' => 'manual.edit',
                'method' => 'GET',
                'url' => 'manual/\d+',
            ],
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF编辑',
                'slug' => 'manual.update',
                'method' => 'PUT',
                'url' => 'manual/\d+',
            ],
            [
                'group_name' => '大概念PDF管理',
                'display_name' => '大概念PDF删除',
                'slug' => 'manual.destroy',
                'method' => 'DELETE',
                'url' => 'manual/\d+',
            ],

            // layout管理
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片列表',
                'slug' => 'layout',
                'method' => 'GET',
                'url' => 'layout',
            ],
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片添加参数',
                'slug' => 'layout.create',
                'method' => 'GET',
                'url' => 'layout/create',
            ],
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片添加',
                'slug' => 'layout.store',
                'method' => 'POST',
                'url' => 'layout',
            ],
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片查看',
                'slug' => 'layout.edit',
                'method' => 'GET',
                'url' => 'layout/\d+',
            ],
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片编辑',
                'slug' => 'layout.update',
                'method' => 'PUT',
                'url' => 'layout/\d+',
            ],
            [
                'group_name' => '各页面图片管理',
                'display_name' => '各页面图片删除',
                'slug' => 'layout.destroy',
                'method' => 'DELETE',
                'url' => 'layout/\d+',
            ],
            // 视频管理
            [
                'group_name' => '视频管理',
                'display_name' => '视频列表',
                'slug' => 'video',
                'method' => 'GET',
                'url' => 'video',
            ],
            [
                'group_name' => '视频管理',
                'display_name' => '视频添加参数',
                'slug' => 'video.create',
                'method' => 'GET',
                'url' => 'video/create',
            ],
            [
                'group_name' => '视频管理',
                'display_name' => '视频添加',
                'slug' => 'video.store',
                'method' => 'POST',
                'url' => 'video',
            ],
            [
                'group_name' => '视频管理',
                'display_name' => '视频查看',
                'slug' => 'video.edit',
                'method' => 'GET',
                'url' => 'video/\d+',
            ],
            [
                'group_name' => '视频管理',
                'display_name' => '视频编辑',
                'slug' => 'video.update',
                'method' => 'PUT',
                'url' => 'video/\d+',
            ],
            [
                'group_name' => '视频管理',
                'display_name' => '视频删除',
                'slug' => 'video.destroy',
                'method' => 'DELETE',
                'url' => 'video/\d+',
            ],

            // 小概念PDF管理
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF列表',
                'slug' => 'test_report',
                'method' => 'GET',
                'url' => 'test_report',
            ],
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF添加参数',
                'slug' => 'test_report.create',
                'method' => 'GET',
                'url' => 'test_report/create',
            ],
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF添加',
                'slug' => 'test_report.store',
                'method' => 'POST',
                'url' => 'test_report',
            ],
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF查看',
                'slug' => 'test_report.edit',
                'method' => 'GET',
                'url' => 'test_report/\d+',
            ],
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF编辑',
                'slug' => 'test_report.update',
                'method' => 'PUT',
                'url' => 'test_report/\d+',
            ],
            [
                'group_name' => '小概念PDF管理',
                'display_name' => '小概念PDF删除',
                'slug' => 'test_report.destroy',
                'method' => 'DELETE',
                'url' => 'test_report/\d+',
            ],

            // 常见设计问题管理
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题列表',
                'slug' => 'design_problem',
                'method' => 'GET',
                'url' => 'design_problem',
            ],
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题添加参数',
                'slug' => 'design_problem.create',
                'method' => 'GET',
                'url' => 'design_problem/create',
            ],
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题添加',
                'slug' => 'design_problem.store',
                'method' => 'POST',
                'url' => 'design_problem',
            ],
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题查看',
                'slug' => 'design_problem.edit',
                'method' => 'GET',
                'url' => 'design_problem/\d+',
            ],
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题编辑',
                'slug' => 'design_problem.update',
                'method' => 'PUT',
                'url' => 'design_problem/\d+',
            ],
            [
                'group_name' => '常见设计问题管理',
                'display_name' => '常见设计问题删除',
                'slug' => 'design_problem.destroy',
                'method' => 'DELETE',
                'url' => 'design_problem/\d+',
            ],

            // 参考图库管理
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库列表',
                'slug' => 'reference_gallery',
                'method' => 'GET',
                'url' => 'reference_gallery',
            ],
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库添加参数',
                'slug' => 'reference_gallery.create',
                'method' => 'GET',
                'url' => 'reference_gallery/create',
            ],
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库添加',
                'slug' => 'reference_gallery.store',
                'method' => 'POST',
                'url' => 'reference_gallery',
            ],
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库查看',
                'slug' => 'reference_gallery.edit',
                'method' => 'GET',
                'url' => 'reference_gallery/\d+',
            ],
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库编辑',
                'slug' => 'reference_gallery.update',
                'method' => 'PUT',
                'url' => 'reference_gallery/\d+',
            ],
            [
                'group_name' => '参考图库管理',
                'display_name' => '参考图库删除',
                'slug' => 'reference_gallery.destroy',
                'method' => 'DELETE',
                'url' => 'reference_gallery/\d+',
            ],

            // 评论管理
            [
                'group_name' => '评论管理',
                'display_name' => '评论列表',
                'slug' => 'reply',
                'method' => 'GET',
                'url' => 'reply',
            ],
            [
                'group_name' => '评论管理',
                'display_name' => '评论发布',
                'slug' => 'reply.publish',
                'method' => 'PUT',
                'url' => 'reply/publish/\d+',
            ],
            [
                'group_name' => '评论管理',
                'display_name' => '评论拒绝发布',
                'slug' => 'reply.denyPublish',
                'method' => 'PUT',
                'url' => 'reply/denyPublish/\d+',
            ],
            [
                'group_name' => '评论管理',
                'display_name' => '评论删除',
                'slug' => 'reply.destroy',
                'method' => 'DELETE',
                'url' => 'reply/\d+',
            ],

            // 题库管理
            [
                'group_name' => '题库管理',
                'display_name' => '题库列表',
                'slug' => 'question',
                'method' => 'GET',
                'url' => 'question',
            ],
            [
                'group_name' => '题库管理',
                'display_name' => '题库添加参数',
                'slug' => 'question.create',
                'method' => 'GET',
                'url' => 'question/create',
            ],
            [
                'group_name' => '题库管理',
                'display_name' => '题库添加',
                'slug' => 'question.store',
                'method' => 'POST',
                'url' => 'question',
            ],
            [
                'group_name' => '题库管理',
                'display_name' => '题库查看',
                'slug' => 'question.edit',
                'method' => 'GET',
                'url' => 'question/\d+',
            ],
            [
                'group_name' => '题库管理',
                'display_name' => '题库编辑',
                'slug' => 'question.update',
                'method' => 'PUT',
                'url' => 'question/\d+',
            ],
            [
                'group_name' => '题库管理',
                'display_name' => '题库删除',
                'slug' => 'question.destroy',
                'method' => 'DELETE',
                'url' => 'question/\d+',
            ],

            // 系列图管理
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库列表',
                'slug' => 'new_series_gallery',
                'method' => 'GET',
                'url' => 'new_series_gallery',
            ],
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库添加参数',
                'slug' => 'new_series_gallery.create',
                'method' => 'GET',
                'url' => 'new_series_gallery/create',
            ],
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库添加',
                'slug' => 'new_series_gallery.store',
                'method' => 'POST',
                'url' => 'new_series_gallery',
            ],
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库查看',
                'slug' => 'new_series_gallery.edit',
                'method' => 'GET',
                'url' => 'new_series_gallery/\d+',
            ],
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库编辑',
                'slug' => 'new_series_gallery.update',
                'method' => 'PUT',
                'url' => 'new_series_gallery/\d+',
            ],
            [
                'group_name' => '系列图库管理',
                'display_name' => '系列图库删除',
                'slug' => 'new_series_gallery.destroy',
                'method' => 'DELETE',
                'url' => 'new_series_gallery/\d+',
            ],
            // 公告管理
            [
                'group_name' => '公告管理',
                'display_name' => '公告列表',
                'slug' => 'gonggao',
                'method' => 'GET',
                'url' => 'gonggao',
            ],
            [
                'group_name' => '公告管理',
                'display_name' => '公告添加参数',
                'slug' => 'gonggao.create',
                'method' => 'GET',
                'url' => 'gonggao/create',
            ],
            [
                'group_name' => '公告管理',
                'display_name' => '公告添加',
                'slug' => 'gonggao.store',
                'method' => 'POST',
                'url' => 'gonggao',
            ],
            [
                'group_name' => '公告管理',
                'display_name' => '公告查看',
                'slug' => 'gonggao.edit',
                'method' => 'GET',
                'url' => 'gonggao/\d+',
            ],
            [
                'group_name' => '公告管理',
                'display_name' => '公告编辑',
                'slug' => 'gonggao.update',
                'method' => 'PUT',
                'url' => 'gonggao/\d+',
            ],
            [
                'group_name' => '公告管理',
                'display_name' => '公告删除',
                'slug' => 'gonggao.destroy',
                'method' => 'DELETE',
                'url' => 'gonggao/\d+',
            ],
            // 设计师报表
            [
                'group_name' => '设计师报表管理',
                'display_name' => '设计师报列表',
                'slug' => 'performance',
                'method' => 'GET',
                'url' => 'performance',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '设计师报添加参数',
                'slug' => 'performance.create',
                'method' => 'GET',
                'url' => 'performance/create',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '设计师报添加',
                'slug' => 'performance.store',
                'method' => 'POST',
                'url' => 'performance',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '设计师报查看',
                'slug' => 'performance.edit',
                'method' => 'GET',
                'url' => 'performance/\d+',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '设计师报编辑',
                'slug' => 'performance.update',
                'method' => 'PUT',
                'url' => 'performance/\d+',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '设计师报删除',
                'slug' => 'performance.destroy',
                'method' => 'DELETE',
                'url' => 'performance/\d+',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '报表数据导出',
                'slug' => 'performance.performanceListExport',
                'method' => 'GET',
                'url' => 'performance/performanceListExport',
            ],
            [
                'group_name' => '设计师报管理',
                'display_name' => '报表数据导入',
                'slug' => 'performance.upload',
                'method' => 'POST',
                'url' => 'performance/upload',
            ],


            [
                'group_name' => '空间方案风格',
                'display_name' => '空间方案风格列表',
                'slug' => 'spaceschemestyle',
                'method' => 'GET',
                'url' => 'space_scheme_style',
            ],
            [
                'group_name' => '空间方案风格',
                'display_name' => '创建空间方案风格',
                'slug' => 'spaceschemestyle.store',
                'method' => 'POST',
                'url' => 'space_scheme_style',
            ],
            [
                'group_name' => '空间方案风格',
                'display_name' => '查看空间方案风格',
                'slug' => 'spaceschemestyle.edit',
                'method' => 'GET',
                'url' => 'space_scheme_style/\d+',
            ],
            [
                'group_name' => '空间方案风格',
                'display_name' => '编辑空间方案风格',
                'slug' => 'spaceschemestyle.update',
                'method' => 'PUT',
                'url' => 'space_scheme_style/\d+',
            ],
            [
                'group_name' => '空间方案风格',
                'display_name' => '删除空间方案风格',
                'slug' => 'spaceschemestyle.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme_style/\d+',
            ],


            [
                'group_name' => '空间方案风格描述',
                'display_name' => '空间方案风格描述列表',
                'slug' => 'spaceschemestylecontent',
                'method' => 'GET',
                'url' => 'space_scheme_style_content',
            ],
            [
                'group_name' => '空间方案风格描述',
                'display_name' => '创建空间方案风格描述',
                'slug' => 'spaceschemestylecontent.store',
                'method' => 'POST',
                'url' => 'space_scheme_style_content',
            ],
            [
                'group_name' => '空间方案风格描述',
                'display_name' => '查看空间方案风格描述',
                'slug' => 'spaceschemestylecontent.edit',
                'method' => 'GET',
                'url' => 'space_scheme_style_content/\d+',
            ],
            [
                'group_name' => '空间方案风格描述',
                'display_name' => '编辑空间方案风格描述',
                'slug' => 'spaceschemestylecontent.update',
                'method' => 'PUT',
                'url' => 'space_scheme_style_content/\d+',
            ],
            [
                'group_name' => '空间方案风格描述',
                'display_name' => '删除空间方案风格描述',
                'slug' => 'spaceschemestylecontent.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme_style_content/\d+',
            ],

            [
                'group_name' => '空间方案系列',
                'display_name' => '空间方案系列列表',
                'slug' => 'spaceschemeseries',
                'method' => 'GET',
                'url' => 'space_scheme_series',
            ],
            [
                'group_name' => '空间方案系列',
                'display_name' => '创建空间方案系列',
                'slug' => 'spaceschemeseries.store',
                'method' => 'POST',
                'url' => 'space_scheme_series',
            ],
            [
                'group_name' => '空间方案系列',
                'display_name' => '查看空间方案系列',
                'slug' => 'spaceschemeseries.edit',
                'method' => 'GET',
                'url' => 'space_scheme_series/\d+',
            ],
            [
                'group_name' => '空间方案系列',
                'display_name' => '编辑空间方案系列',
                'slug' => 'spaceschemeseries.update',
                'method' => 'PUT',
                'url' => 'space_scheme_series/\d+',
            ],
            [
                'group_name' => '空间方案系列',
                'display_name' => '删除空间方案系列',
                'slug' => 'spaceschemeseries.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme_series/\d+',
            ],

            [
                'group_name' => '空间方案内容类别',
                'display_name' => '创建空间方案内容类别',
                'slug' => 'spaceschemecontentcategory.store',
                'method' => 'POST',
                'url' => 'space_scheme_content_category',
            ],
            [
                'group_name' => '空间方案内容类别',
                'display_name' => '查看空间方案内容类别',
                'slug' => 'spaceschemecontentcategory.edit',
                'method' => 'GET',
                'url' => 'space_scheme_content_category/\d+',
            ],
            [
                'group_name' => '空间方案内容类别',
                'display_name' => '查看空间方案内容类别',
                'slug' => 'spaceschemecontentcategory.contentedit',
                'method' => 'GET',
                'url' => 'space_scheme_content_category/content/\d+',
            ],
            [
                'group_name' => '空间方案内容类别',
                'display_name' => '编辑空间方案内容类别',
                'slug' => 'spaceschemecontentcategory.update',
                'method' => 'PUT',
                'url' => 'space_scheme_content_category/\d+',
            ],
            [
                'group_name' => '空间方案内容类别',
                'display_name' => '删除空间方案内容类别',
                'slug' => 'spaceschemecontentcategory.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme_content_category/\d+',
            ],
            [
                'group_name' => '空间方案内容类别',
                'display_name' => '获取空间方案类别内容',
                'slug' => 'spaceschemecontentcategory.content',
                'method' => 'DELETE',
                'url' => 'space_scheme_content_category/\d+',
            ],

            [
                'group_name' => '空间方案列表',
                'display_name' => '空间方案列表列表',
                'slug' => 'spacescheme',
                'method' => 'GET',
                'url' => 'space_scheme',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '空间方案参数',
                'slug' => 'spacescheme.create',
                'method' => 'GET',
                'url' => 'space_scheme/create',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '创建空间方案',
                'slug' => 'spacescheme.store',
                'method' => 'POST',
                'url' => 'space_scheme',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '查看空间方案',
                'slug' => 'spacescheme.edit',
                'method' => 'GET',
                'url' => 'space_scheme/\d+',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '编辑空间方案',
                'slug' => 'spacescheme.update',
                'method' => 'PUT',
                'url' => 'space_scheme/\d+',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '删除空间方案',
                'slug' => 'spacescheme.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme/\d+',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '空间方案题目关联列表',
                'slug' => 'spaceschemerelevancy',
                'method' => 'GET',
                'url' => 'space_scheme/relevancy/\d+',
            ],
            [
                'group_name' => '空间方案列表',
                'display_name' => '修改空间方案题目关联列表',
                'slug' => 'spaceschemerelevancy.edit',
                'method' => 'PUT',
                'url' => 'space_scheme/relevancys/\d+',
            ],


            [
                'group_name' => '空间方案内容列表',
                'display_name' => '创建空间方案内容',
                'slug' => 'spaceschemecontent.store',
                'method' => 'POST',
                'url' => 'space_scheme_content',
            ],
            [
                'group_name' => '空间方案内容列表',
                'display_name' => '查看空间方案内容',
                'slug' => 'spaceschemecontent.edit',
                'method' => 'GET',
                'url' => 'space_scheme_content/\d+',
            ],
            [
                'group_name' => '空间方案内容列表',
                'display_name' => '编辑空间方案内容',
                'slug' => 'spaceschemecontent.update',
                'method' => 'PUT',
                'url' => 'space_scheme_content/\d+',
            ],
            [
                'group_name' => '空间方案内容列表',
                'display_name' => '删除空间方案内容',
                'slug' => 'spaceschemecontent.destroy',
                'method' => 'DELETE',
                'url' => 'space_scheme_content/\d+',
            ],

            [
                'group_name' => '微信文章管理',
                'display_name' => '微信文章列表',
                'slug' => 'wxcasearticle',
                'method' => 'GET',
                'url' => 'wx_case_article',
            ],
            [
                'group_name' => '微信文章管理',
                'display_name' => '微信文章添加参数',
                'slug' => 'wxcasearticle.create',
                'method' => 'GET',
                'url' => 'wx_case_article/create',
            ],
            [
                'group_name' => '微信文章管理',
                'display_name' => '创建微信文章',
                'slug' => 'wxcasearticle.store',
                'method' => 'POST',
                'url' => 'wx_case_article',
            ],
            [
                'group_name' => '微信文章管理',
                'display_name' => '查看微信文章',
                'slug' => 'wxcasearticle.edit',
                'method' => 'GET',
                'url' => 'wx_case_article/\d+',
            ],
            [
                'group_name' => '微信文章管理',
                'display_name' => '编辑微信文章',
                'slug' => 'wxcasearticle.update',
                'method' => 'PUT',
                'url' => 'wx_case_article/\d+',
            ],
            [
                'group_name' => '微信文章管理',
                'display_name' => '删除微信文章',
                'slug' => 'wxcasearticle.destroy',
                'method' => 'DELETE',
                'url' => 'wx_case_article/\d+',
            ],

            // 自助报价管理
            // 定制风格
            [
                'group_name' => '定制风格',
                'display_name' => '定制风格列表',
                'slug' => 'customstyle',
                'method' => 'GET',
                'url' => 'custom_style',
            ],
            [
                'group_name' => '定制风格',
                'display_name' => '定制风格添加参数',
                'slug' => 'customstyle.create',
                'method' => 'GET',
                'url' => 'custom_style/create',
            ],
            [
                'group_name' => '定制风格',
                'display_name' => '新增定制风格',
                'slug' => 'customstyle.store',
                'method' => 'POST',
                'url' => 'custom_style',
            ],
            [
                'group_name' => '定制风格',
                'display_name' => '查看定制风格',
                'slug' => 'customstyle.edit',
                'method' => 'GET',
                'url' => 'custom_style/\d+',
            ],
            [
                'group_name' => '定制风格',
                'display_name' => '编辑定制风格',
                'slug' => 'customstyle.update',
                'method' => 'PUT',
                'url' => 'custom_style/\d+',
            ],
            [
                'group_name' => '定制风格',
                'display_name' => '删除定制风格',
                'slug' => 'customstyle.destroy',
                'method' => 'DELETE',
                'url' => 'custom_style/\d+',
            ],
            // 自助报价
            [
                'group_name' => '自助报价',
                'display_name' => '自助报价单列表',
                'slug' => 'selfservicequotation',
                'method' => 'GET',
                'url' => 'self_service_quotation',
            ],
            // 设计服务banner管理
            [
                'group_name' => '设计服务banner管理',
                'display_name' => 'banner列表',
                'slug' => 'design_serve_banner',
                'method' => 'GET',
                'url' => 'design_serve/banner/list',
            ],
            [
                'group_name' => '设计服务banner管理',
                'display_name' => 'banner添加',
                'slug' => 'design_serve_banner.store',
                'method' => 'POST',
                'url' => 'design_serve/banner',
            ],
            [
                'group_name' => '设计服务banner管理',
                'display_name' => 'banner查看',
                'slug' => 'design_serve_banner.edit',
                'method' => 'GET',
                'url' => 'design_serve/banner/\d+',
            ],
            [
                'group_name' => '设计服务banner管理',
                'display_name' => 'banner编辑',
                'slug' => 'design_serve_banner.update',
                'method' => 'PUT',
                'url' => 'design_serve/banner/\d+',
            ],
            [
                'group_name' => '设计服务banner管理',
                'display_name' => 'banner删除',
                'slug' => 'design_serve_banner.destroy',
                'method' => 'DELETE',
                'url' => 'design_serve/banner/\d+',
            ],


        ];
        DB::delete('delete from kd_administrator_permissions where id = 202');
        DB::delete('delete from kd_administrator_permissions where id = 203');
        DB::delete('delete from kd_administrator_permissions where id = 204');
        DB::delete('delete from kd_administrator_permissions where id = 205');
        DB::delete('delete from kd_administrator_permissions where id = 206');
        // DB::delete('truncate table kd_administrator_permissions');
        foreach ($permissions as $permission) {
            $exists = \App\Models\AdministratorPermission::where('slug', $permission['slug'])
                ->where('method', $permission['method'])
                ->exists();
            if ($exists) {
                continue;
            }
            \App\Models\AdministratorPermission::create([
                'display_name' => $permission['display_name'],
                'group_name' => $permission['group_name'],
                'slug' => $permission['slug'],
                'description' => $permission['description'] ?? '',
                'method' => $permission['method'],
                'url' => $permission['url'],
                'route' => $permission['route'] ?? '',
            ]);
        }
    }
}
